/*jslint browser:true */
"use strict";

angular.module('companySearchServices',[])
    .factory("companyAPIService", function ($http) {

        var service = {};

        service.search = function (queryData) {
            return $http.post('api/company/search', queryData);
        };


        service.essearch = function (queryData) {
            return $http.post('api/company/essearch', queryData);
        };
      
        return service;
    });
